package com.ruoyi.mng.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 商户额度对象 hz_mer_balance
 * 
 * @author chenqiang
 * @date 2023-04-28
 */
public class HzMerBalance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 余额ID */
    private Long balanceId;

    /** 商户ID */
    @Excel(name = "商户ID")
    private String merchantId;

    /** 余额；单位分 */
    @Excel(name = "余额；单位分")
    private BigDecimal balance;

    /** 冻结；单位分 */
    private BigDecimal freezeAmout;

    /** 状态 1-启用 2-暂停 -99-注销 */
    @Excel(name = "状态 1-启用 2-暂停 -99-注销")
    private Integer status;

    /** 版本号 */
    private Long version;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /**
     * description :: 商户简称
     */
    private String extend_merchantName;

    /**
     * description :: 入账金额
     */
    private String extend_amount;

    public void setBalanceId(Long balanceId) 
    {
        this.balanceId = balanceId;
    }

    public Long getBalanceId() 
    {
        return balanceId;
    }
    public void setMerchantId(String merchantId) 
    {
        this.merchantId = merchantId;
    }

    public String getMerchantId() 
    {
        return merchantId;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public BigDecimal getFreezeAmout() {
        return freezeAmout;
    }

    public void setFreezeAmout(BigDecimal freezeAmout) {
        this.freezeAmout = freezeAmout;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getExtend_merchantName() {
        return extend_merchantName;
    }

    public void setExtend_merchantName(String extend_merchantName) {
        this.extend_merchantName = extend_merchantName;
    }

    public String getExtend_amount() {
        return extend_amount;
    }

    public void setExtend_amount(String extend_amount) {
        this.extend_amount = extend_amount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("balanceId", getBalanceId())
            .append("merchantId", getMerchantId())
            .append("balance", getBalance())
            .append("freezeAmout", getFreezeAmout())
            .append("status", getStatus())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
